package com.silverbox.shopper.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.silverbox.shopper.entity.EmployeeAuthRecord;

public interface EmployeeAuthRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(EmployeeAuthRecord record);

    int insertSelective(EmployeeAuthRecord record);

    EmployeeAuthRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(EmployeeAuthRecord record);

    int updateByPrimaryKey(EmployeeAuthRecord record);
    List<EmployeeAuthRecord> isExistEmployeeAuthRecord(@Param("shopId")Integer shopId, @Param("storeId")Integer storeId, @Param("authSource")String authSource, @Param("authAppid")String authAppid,
    		@Param("authUserCode")String authUserCode, @Param("type")Integer type,@Param("authActiveTime")Date authActiveTime);

	void updateEmployeeAuthRecordById(@Param("id")Integer id, @Param("authActiveTime")Date authActiveTime, @Param("authModifyTime")Date authModifyTime);
}